﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPMN.Domid.Model.Users
{
    /// <summary>
    /// 用户信息表
    /// </summary>
    [Table("User")]
    public class User: Audit
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? Password { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int? UserAge { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string? RealName { get; set; }
        /// <summary>
        /// 邮件
        /// </summary>
        public string? Email { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 登录失败次数 默认0
        /// </summary>
        public int FailNum { get; set; } = 0;
        /// <summary>
        /// 锁定时间 默认当前时间
        /// </summary>
        public DateTime? LockTime { get; set; } = DateTime.Now;
    }
}
